﻿using System.ComponentModel.DataAnnotations;
using System.Web.Services.Description;

namespace WebSite.Admin.Models.Account
{
    /// <summary>
    /// 登录页面实体
    /// </summary>
    public class LoginViewModel
    {
        [Required(ErrorMessage = "用户名不能为空")]
        public string UserName { get; set; }

        [Required(ErrorMessage = "密码不能为空")]
        [DataType(DataType.Password)]
        public string Password { get; set; }

        [Display(Name = "记住我?")]
        public bool RememberMe { get; set; }

        public string ReturnUrl { get; set; }
    }
}